package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.app.pojo.Banner;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApBannerService;
import com.zhentao.mapper.ApBannerMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 86150
* @description 针对表【banner】的数据库操作Service实现
* @createDate 2024-09-20 19:02:05
*/
@Service
public class ApBannerServiceImpl extends ServiceImpl<ApBannerMapper, Banner>
    implements ApBannerService {
@Resource
private ApBannerMapper bannerMapper;
    @Override
    public ResponseResult apBanner() {
        List<Banner> banners = bannerMapper.selectList(null);
        return ResponseResult.okResult(banners);
    }

    @Override
    public ResponseResult bannerId(Integer proid) {
        Banner banner = bannerMapper.bannerId(proid);
        return ResponseResult.okResult(banner);
    }
}




